home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Applications / Portable Patmos / var / tmp / cc000010.i next >
Encoding:
Text File  |  1995-10-18  |  21.7 KB  |  2,270 lines

  1. # 1 "zip.c"
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12. # 1 "/usr/include/ctype.h" 1 3
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51. # 1 "/usr/include/sys/cdefs.h" 1 3
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116. # 82 "/usr/include/sys/cdefs.h" 3
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146. # 39 "/usr/include/ctype.h" 2 3
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158. extern const char    *_ctype_;
  159. extern const short    *_tolower_tab_;
  160. extern const short    *_toupper_tab_;
  161.  
  162.  
  163. extern int    isalnum  (int)         ;
  164. extern int    isalpha  (int)         ;
  165. extern int    iscntrl  (int)         ;
  166. extern int    isdigit  (int)         ;
  167. extern int    isgraph  (int)         ;
  168. extern int    islower  (int)         ;
  169. extern int    isprint  (int)         ;
  170. extern int    ispunct  (int)         ;
  171. extern int    isspace  (int)         ;
  172. extern int    isupper  (int)         ;
  173. extern int    isxdigit  (int)         ;
  174. extern int    tolower  (int)         ;
  175. extern int    toupper  (int)         ;
  176.  
  177.  
  178. extern int    isblank  (int)         ;
  179. extern int    isascii  (int)         ;
  180. extern int    toascii  (int)         ;
  181. extern int    _tolower  (int)         ;
  182. extern int    _toupper  (int)         ;
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213. # 11 "zip.c" 2
  214.  
  215. # 1 "/usr/include/sys/types.h" 1 3
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256. # 1 "/usr/include/machine/endian.h" 1 3
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337. # 94 "/usr/include/machine/endian.h" 3
  338.  
  339.  
  340.  
  341. unsigned long    htonl  (unsigned long)         ;
  342. unsigned short    htons  (unsigned short)         ;
  343. unsigned long    ntohl  (unsigned long)         ;
  344. unsigned short    ntohs  (unsigned short)         ;
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361. # 128 "/usr/include/machine/endian.h" 3
  362.  
  363.  
  364.  
  365. # 41 "/usr/include/sys/types.h" 2 3
  366.  
  367.  
  368. typedef    unsigned char    u_char;
  369. typedef    unsigned short    u_short;
  370. typedef    unsigned int    u_int;
  371. typedef    unsigned long    u_long;
  372. typedef    unsigned short    ushort;         
  373.  
  374. typedef    char *    caddr_t;         
  375. typedef    long    daddr_t;         
  376. typedef    short    dev_t;             
  377. typedef    u_long    ino_t;             
  378. typedef    long    off_t;             
  379. typedef    u_short    nlink_t;         
  380. typedef    long    swblk_t;         
  381. typedef    long    segsz_t;         
  382. typedef    u_short    uid_t;             
  383. typedef    u_short    gid_t;             
  384. typedef    short    pid_t;             
  385. typedef    u_short    mode_t;             
  386. typedef u_long    fixpt_t;         
  387. typedef int    ssize_t;         
  388.  
  389.  
  390. typedef    struct    _uquad    { u_long val[2]; } u_quad;
  391. typedef    struct    _quad    {   long val[2]; } quad;
  392. typedef    unsigned long long u_quad_t;     
  393. typedef    long long    quad_t;
  394. typedef    quad_t *    qaddr_t;
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401. # 1 "/usr/include/machine/ansi.h" 1 3
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460. # 76 "/usr/include/sys/types.h" 2 3
  461.  
  462.  
  463. # 1 "/usr/include/machine/types.h" 1 3
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503. typedef struct _physadr {
  504.     short r[1];
  505. } *physadr;
  506.  
  507. typedef struct label_t {
  508.     int val[15];
  509. } label_t;
  510.  
  511. typedef    u_long    vm_offset_t;
  512. typedef    u_long    vm_size_t;
  513.  
  514.  
  515. # 78 "/usr/include/sys/types.h" 2 3
  516.  
  517.  
  518.  
  519.  
  520. typedef    unsigned long            clock_t;
  521.  
  522.  
  523.  
  524.  
  525. typedef    unsigned int            size_t;
  526.  
  527.  
  528.  
  529.  
  530. typedef    long                time_t;
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547. typedef long    fd_mask;
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554. typedef    struct fd_set {
  555.     fd_mask    fds_bits[((( 256  )+((  (sizeof(fd_mask) * 8        )     )-1))/(  (sizeof(fd_mask) * 8        )     )) ];
  556. } fd_set;
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563. # 139 "/usr/include/sys/types.h" 3
  564.  
  565.  
  566.  
  567.  
  568.  
  569. # 12 "zip.c" 2
  570.  
  571.  
  572. # 1 "tailor.h" 1
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597. # 65 "tailor.h"
  598.  
  599.  
  600.  
  601.  
  602. # 109 "tailor.h"
  603.  
  604.  
  605. # 130 "tailor.h"
  606.  
  607.  
  608. # 144 "tailor.h"
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618. # 172 "tailor.h"
  619.  
  620.  
  621. # 194 "tailor.h"
  622.  
  623.  
  624. # 215 "tailor.h"
  625.  
  626.  
  627. # 230 "tailor.h"
  628.  
  629.  
  630. # 250 "tailor.h"
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.      
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.     
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710. # 14 "zip.c" 2
  711.  
  712. # 1 "gzip.h" 1
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.    typedef void *voidp;
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734. # 1 "/usr/include/stdio.h" 1 3
  735.  
  736.  
  737.  
  738.  
  739.  
  740.  
  741.  
  742.  
  743.  
  744.  
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789. typedef long fpos_t;         
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800. struct __sbuf {
  801.     unsigned char *_base;
  802.     int    _size;
  803. };
  804.  
  805.  
  806.  
  807.  
  808.  
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829. typedef    struct __sFILE {
  830.     unsigned char *_p;     
  831.     int    _r;         
  832.     int    _w;         
  833.     short    _flags;         
  834.     short    _file;         
  835.     struct    __sbuf _bf;     
  836.     int    _lbfsize;     
  837.  
  838.      
  839.     void    *_cookie;     
  840.     int    (*_close)  (void *)         ;
  841.     int    (*_read)   (void *, char *, int)         ;
  842.     fpos_t    (*_seek)   (void *, fpos_t, int)         ;
  843.     int    (*_write)  (void *, const char *, int)         ;
  844.  
  845.      
  846.     struct    __sbuf _ub;     
  847.     unsigned char *_up;     
  848.     int    _ur;         
  849.  
  850.      
  851.     unsigned char _ubuf[3];     
  852.     unsigned char _nbuf[1];     
  853.  
  854.      
  855.     struct    __sbuf _lb;     
  856.  
  857.      
  858.     int    _blksize;     
  859.     int    _offset;     
  860. } FILE;
  861.  
  862.  
  863. extern FILE __sF[];
  864.  
  865.  
  866.  
  867.  
  868.  
  869.  
  870.      
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884.  
  885.  
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892.  
  893.  
  894.  
  895.  
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903.  
  904.  
  905.  
  906.  
  907.  
  908.  
  909.  
  910.  
  911.  
  912.  
  913.  
  914.  
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931. void     clearerr  (FILE *)         ;
  932. int     fclose  (FILE *)         ;
  933. int     feof  (FILE *)         ;
  934. int     ferror  (FILE *)         ;
  935. int     fflush  (FILE *)         ;
  936. int     fgetc  (FILE *)         ;
  937. int     fgetpos  (FILE *, fpos_t *)         ;
  938. char    *fgets  (char *, size_t, FILE *)         ;
  939. FILE    *fopen  (const char *, const char *)         ;
  940. int     fprintf  (FILE *, const char *, ...)         ;
  941. int     fputc  (int, FILE *)         ;
  942. int     fputs  (const char *, FILE *)         ;
  943. size_t     fread  (void *, size_t, size_t, FILE *)         ;
  944. FILE    *freopen  (const char *, const char *, FILE *)         ;
  945. int     fscanf  (FILE *, const char *, ...)         ;
  946. int     fseek  (FILE *, long, int)         ;
  947. int     fsetpos  (FILE *, const fpos_t *)         ;
  948. long     ftell  (const FILE *)         ;
  949. size_t     fwrite  (const void *, size_t, size_t, FILE *)         ;
  950. int     getc  (FILE *)         ;
  951. int     getchar  (void)         ;
  952. char    *gets  (char *)         ;
  953.  
  954. extern int sys_nerr;             
  955. extern const char *const sys_errlist[];
  956.  
  957. void     perror  (const char *)         ;
  958. int     printf  (const char *, ...)         ;
  959. int     putc  (int, FILE *)         ;
  960. int     putchar  (int)         ;
  961. int     puts  (const char *)         ;
  962. int     remove  (const char *)         ;
  963. int     rename   (const char *, const char *)         ;
  964. void     rewind  (FILE *)         ;
  965. int     scanf  (const char *, ...)         ;
  966. void     setbuf  (FILE *, char *)         ;
  967. int     setvbuf  (FILE *, char *, int, size_t)         ;
  968. int     sprintf  (char *, const char *, ...)         ;
  969. int     sscanf  (const char *, const char *, ...)         ;
  970. FILE    *tmpfile  (void)         ;
  971. char    *tmpnam  (char *)         ;
  972. int     ungetc  (int, FILE *)         ;
  973. int     vfprintf  (FILE *, const char *, char *            )         ;
  974. int     vprintf  (const char *, char *            )         ;
  975. int     vsprintf  (char *, const char *, char *            )         ;
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986. char    *ctermid  (char *)         ;
  987. char    *cuserid  (char *)         ;
  988. FILE    *fdopen  (int, const char *)         ;
  989. int     fileno  (FILE *)         ;
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998. char    *fgetline  (FILE *, size_t *)         ;
  999. int     fpurge  (FILE *)         ;
  1000. int     getw  (FILE *)         ;
  1001. int     pclose  (FILE *)         ;
  1002. FILE    *popen  (const char *, const char *)         ;
  1003. int     putw  (int, FILE *)         ;
  1004. void     setbuffer  (FILE *, char *, int)         ;
  1005. int     setlinebuf  (FILE *)         ;
  1006. char    *tempnam  (const char *, const char *)         ;
  1007. int     snprintf  (char *, size_t, const char *, ...)         
  1008.         __attribute__((format (printf, 3, 4)));
  1009. int     vsnprintf  (char *, size_t, const char *, char *            )         
  1010.         __attribute__((format (printf, 3, 0)));
  1011. int     vscanf  (const char *, char *            )         
  1012.         __attribute__((format (scanf, 1, 0)));
  1013. int     vsscanf  (const char *, const char *, char *            )         
  1014.         __attribute__((format (scanf, 2, 0)));
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028. FILE    *funopen  (const void *,
  1029.         int (*)(void *, char *, int),
  1030.         int (*)(void *, const char *, int),
  1031.         fpos_t (*)(void *, fpos_t, int),
  1032.         int (*)(void *))         ;
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042. int    __srget  (FILE *)         ;
  1043. int    __svfscanf  (FILE *, const char *, char *            )         ;
  1044. int    __swbuf  (int, FILE *)         ;
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053. static __inline int __sputc(int _c, FILE *_p) {
  1054.     if (--_p->_w >= 0 || (_p->_w >= _p->_lbfsize && (char)_c != '\n'))
  1055.         return (*_p->_p++ = _c);
  1056.     else
  1057.         return (__swbuf(_c, _p));
  1058. }
  1059. # 337 "/usr/include/stdio.h" 3
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066.  
  1067.  
  1068.  
  1069.  
  1070.  
  1071.  
  1072.  
  1073.  
  1074.  
  1075.  
  1076.  
  1077.  
  1078.  
  1079.  
  1080.  
  1081.  
  1082.  
  1083. # 22 "gzip.h" 2
  1084.  
  1085.  
  1086. # 1 "/usr/include/string.h" 1 3
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138.  
  1139. void    *memchr  (const void *, int, size_t)         ;
  1140.  
  1141.  
  1142.  
  1143.  
  1144. void    *memmove  (void *, const void *, size_t)         ;
  1145. void    *memset  (void *, int, size_t)         ;
  1146. char    *strcat  (char *, const char *)         ;
  1147. char    *strchr  (const char *, int)         ;
  1148. int     strcmp  (const char *, const char *)         ;
  1149. int     strcoll  (const char *, const char *)         ;
  1150. char    *strcpy  (char *, const char *)         ;
  1151. size_t     strcspn  (const char *, const char *)         ;
  1152. char    *strerror  (int)         ;
  1153. size_t     strlen  (const char *)         ;
  1154. char    *strncat  (char *, const char *, size_t)         ;
  1155. int     strncmp  (const char *, const char *, size_t)         ;
  1156. char    *strncpy  (char *, const char *, size_t)         ;
  1157. char    *strpbrk  (const char *, const char *)         ;
  1158. char    *strrchr  (const char *, int)         ;
  1159. size_t     strspn  (const char *, const char *)         ;
  1160. char    *strstr  (const char *, const char *)         ;
  1161. char    *strtok  (char *, const char *)         ;
  1162. size_t     strxfrm  (char *, const char *, size_t)         ;
  1163.  
  1164.  
  1165.  
  1166. int     bcmp  (const void *, const void *, size_t)         ;
  1167. void     bcopy  (const void *, void *, size_t)         ;
  1168. void     bzero  (void *, size_t)         ;
  1169. int     ffs  (int)         ;
  1170. char    *index  (const char *, int)         ;
  1171. void    *memccpy  (void *, const void *, int, size_t)         ;
  1172. char    *rindex  (const char *, int)         ;
  1173. int     strcasecmp  (const char *, const char *)         ;
  1174. char    *strdup  (const char *)         ;
  1175. void     strmode  (int, char *)         ;
  1176. int     strncasecmp  (const char *, const char *, size_t)         ;
  1177. char    *strsep  (char **, const char *)         ;
  1178. void     swab  (const void *, void *, size_t)         ;
  1179.  
  1180.  
  1181.  
  1182.  
  1183. # 24 "gzip.h" 2
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.  
  1196.  
  1197.  
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204. typedef unsigned char  uch;
  1205. typedef unsigned short ush;
  1206. typedef unsigned long  ulg;
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221. extern int method;          
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260. # 108 "gzip.h"
  1261.  
  1262.  
  1263.  
  1264.  
  1265.  
  1266.  
  1267.  
  1268.  extern  uch    inbuf [] ;           
  1269.  extern  uch    outbuf [] ;          
  1270.  extern  ush    d_buf [] ;           
  1271.  extern  uch    window [] ;          
  1272.  
  1273.  
  1274.  
  1275.  
  1276.     extern  ush    prev     [] ;   
  1277.  
  1278.  
  1279.  
  1280.  
  1281.  
  1282.  
  1283.  
  1284. extern unsigned insize;  
  1285. extern unsigned inptr;   
  1286. extern unsigned outcnt;  
  1287.  
  1288. extern long bytes_in;    
  1289. extern long bytes_out;   
  1290. extern long header_bytes; 
  1291.  
  1292.  
  1293.  
  1294.  
  1295. extern int  ifd;         
  1296. extern int  ofd;         
  1297. extern char ifname[];    
  1298. extern char ofname[];    
  1299. extern char *progname;   
  1300.  
  1301. extern long time_stamp;  
  1302. extern long ifile_size;  
  1303.  
  1304. typedef int file_t;      
  1305.  
  1306.  
  1307.  
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.  
  1330.  
  1331.  
  1332.  
  1333.  
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344.  
  1345.  
  1346. extern int decrypt;         
  1347. extern int exit_code;       
  1348. extern int verbose;         
  1349. extern int quiet;           
  1350. extern int level;           
  1351. extern int test;            
  1352. extern int to_stdout;       
  1353. extern int save_orig_name;  
  1354.  
  1355.  
  1356.  
  1357.  
  1358.  
  1359.  
  1360.  
  1361.  
  1362.  
  1363.  
  1364.  
  1365.  
  1366.  
  1367.  
  1368.  
  1369.  
  1370. # 225 "gzip.h"
  1371.  
  1372.  
  1373.  
  1374.  
  1375.  
  1376.  
  1377.  
  1378.  
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.  
  1394.  
  1395.  
  1396.  
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402.  
  1403.  
  1404.  
  1405.  
  1406.  
  1407.      
  1408. extern int zip          (int in, int out)  ;
  1409. extern int file_read    (char *buf,  unsigned size)  ;
  1410.  
  1411.      
  1412. extern int unzip        (int in, int out)  ;
  1413. extern int check_zipfile   (int in)  ;
  1414.  
  1415.      
  1416. extern int unpack       (int in, int out)  ;
  1417.  
  1418.      
  1419. extern int unlzh        (int in, int out)  ;
  1420.  
  1421.      
  1422. void  abort_gzip   (void)  ;
  1423.  
  1424.          
  1425. void lm_init   (int pack_level, ush *flags)  ;
  1426. ulg  deflate   (void)  ;
  1427.  
  1428.          
  1429. void ct_init       (ush *attr, int *method)  ;
  1430. int  ct_tally      (int dist, int lc)  ;
  1431. ulg  flush_block   (char *buf, ulg stored_len, int eof)  ;
  1432.  
  1433.          
  1434. void     bi_init      (file_t zipfile)  ;
  1435. void     send_bits    (int value, int length)  ;
  1436. unsigned bi_reverse   (unsigned value, int length)  ;
  1437. void     bi_windup    (void)  ;
  1438. void     copy_block   (char *buf, unsigned len, int header)  ;
  1439. extern   int (*read_buf)   (char *buf, unsigned size)  ;
  1440.  
  1441.      
  1442. extern int copy             (int in, int out)  ;
  1443. extern ulg  updcrc          (uch *s, unsigned n)  ;
  1444. extern void clear_bufs      (void)  ;
  1445. extern int  fill_inbuf      (int eof_ok)  ;
  1446. extern void flush_outbuf    (void)  ;
  1447. extern void flush_window    (void)  ;
  1448. extern void write_buf       (int fd, voidp buf, unsigned cnt)  ;
  1449. extern char *strlwr         (char *s)  ;
  1450. extern char *basename       (char *fname)  ;
  1451. extern void make_simple_name   (char *name)  ;
  1452. extern char *add_envopt     (int *argcp, char ***argvp, char *env)  ;
  1453. extern void error           (char *m)  ;
  1454. extern void warn            (char *a, char *b)  ;
  1455. extern void read_error      (void)  ;
  1456. extern void write_error     (void)  ;
  1457. extern void display_ratio   (long num, long den, FILE *file)  ;
  1458. extern voidp xmalloc        (unsigned int size)  ;
  1459.  
  1460.      
  1461. extern int inflate   (void)  ;
  1462. # 15 "zip.c" 2
  1463.  
  1464. # 1 "crypt.h" 1
  1465.  
  1466.  
  1467.  
  1468.  
  1469.  
  1470.  
  1471.  
  1472.  
  1473.  
  1474.  
  1475.  
  1476.  
  1477. # 16 "zip.c" 2
  1478.  
  1479.  
  1480.  
  1481. # 1 "/usr/include/unistd.h" 1 3
  1482.  
  1483.  
  1484.  
  1485.  
  1486.  
  1487.  
  1488.  
  1489.  
  1490.  
  1491.  
  1492.  
  1493.  
  1494.  
  1495.  
  1496.  
  1497.  
  1498.  
  1499.  
  1500.  
  1501.  
  1502.  
  1503.  
  1504.  
  1505.  
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523. # 1 "/usr/include/sys/unistd.h" 1 3
  1524.  
  1525.  
  1526.  
  1527.  
  1528.  
  1529.  
  1530.  
  1531.  
  1532.  
  1533.  
  1534.  
  1535.  
  1536.  
  1537.  
  1538.  
  1539.  
  1540.  
  1541.  
  1542.  
  1543.  
  1544.  
  1545.  
  1546.  
  1547.  
  1548.  
  1549.  
  1550.  
  1551.  
  1552.  
  1553.  
  1554.  
  1555.  
  1556.  
  1557.  
  1558.  
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573.  
  1574.  
  1575.                  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593.  
  1594.  
  1595.  
  1596.  
  1597.  
  1598.  
  1599.  
  1600.  
  1601.  
  1602.  
  1603.  
  1604.  
  1605.  
  1606.  
  1607.  
  1608.  
  1609.  
  1610.  
  1611.  
  1612.  
  1613.  
  1614.  
  1615.  
  1616.  
  1617.  
  1618.  
  1619.  
  1620.  
  1621.  
  1622.  
  1623.  
  1624.  
  1625.  
  1626.  
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639. # 42 "/usr/include/unistd.h" 2 3
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651. __volatile  void     _exit  (int)         ;
  1652. int     access  (const char *, int)         ;
  1653. unsigned alarm  (unsigned)         ;
  1654. int     chdir  (const char *)         ;
  1655. int     chown  (const char *, uid_t, gid_t)         ;
  1656. int     close  (int)         ;
  1657. size_t     confstr  (int, char *, size_t)         ;
  1658. char    *cuserid  (char *)         ;
  1659. int     dup  (int)         ;
  1660. int     dup2  (int, int)         ;
  1661. int     execl  (const char *, const char *, ...)         ;
  1662. int     execle  (const char *, const char *, ...)         ;
  1663. int     execlp  (const char *, const char *, ...)         ;
  1664. int     execv  (const char *, char * const *)         ;
  1665. int     execve  (const char *, char * const *, char * const *)         ;
  1666. int     execvp  (const char *, char * const *)         ;
  1667. pid_t     fork  (void)         ;
  1668. long     fpathconf  (int, int)         ;         
  1669. char    *getcwd  (char *, size_t)         ;
  1670. gid_t     getegid  (void)         ;
  1671. uid_t     geteuid  (void)         ;
  1672. gid_t     getgid  (void)         ;
  1673. int     getgroups  (int, int *)         ;         
  1674. char    *getlogin  (void)         ;
  1675. pid_t     getpgrp  (void)         ;
  1676. pid_t     getpid  (void)         ;
  1677. pid_t     getppid  (void)         ;
  1678. uid_t     getuid  (void)         ;
  1679. int     isatty  (int)         ;
  1680. int     link  (const char *, const char *)         ;
  1681. off_t     lseek  (int, off_t, int)         ;
  1682. long     pathconf  (const char *, int)         ;     
  1683. int     pause  (void)         ;
  1684. int     pipe  (int *)         ;
  1685. ssize_t     read  (int, void *, size_t)         ;
  1686. int     rmdir  (const char *)         ;
  1687. int     setgid  (gid_t)         ;
  1688. int     setpgid  (pid_t, pid_t)         ;
  1689. pid_t     setsid  (void)         ;
  1690. int     setuid  (uid_t)         ;
  1691. unsigned sleep  (unsigned)         ;
  1692. long     sysconf  (int)         ;             
  1693. pid_t     tcgetpgrp  (int)         ;
  1694. int     tcsetpgrp  (int, pid_t)         ;
  1695. char    *ttyname  (int)         ;
  1696. int     unlink  (const char *)         ;
  1697. ssize_t     write  (int, const void *, size_t)         ;
  1698.  
  1699.  
  1700.  
  1701.  
  1702. # 1 "/usr/include/sys/time.h" 1 3
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711.  
  1712.  
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.  
  1721.  
  1722.  
  1723.  
  1724.  
  1725.  
  1726.  
  1727.  
  1728.  
  1729.  
  1730.  
  1731.  
  1732.  
  1733.  
  1734.  
  1735.  
  1736.  
  1737.  
  1738.  
  1739.  
  1740.  
  1741.  
  1742.  
  1743.  
  1744.  
  1745.  
  1746. struct timeval {
  1747.     long    tv_sec;         
  1748.     long    tv_usec;     
  1749. };
  1750.  
  1751. struct timezone {
  1752.     int    tz_minuteswest;     
  1753.     int    tz_dsttime;     
  1754. };
  1755.  
  1756.  
  1757.  
  1758.  
  1759.  
  1760.  
  1761.  
  1762.  
  1763.  
  1764.  
  1765.  
  1766.  
  1767.  
  1768.  
  1769.  
  1770.  
  1771.  
  1772.  
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782. struct    itimerval {
  1783.     struct    timeval it_interval;     
  1784.     struct    timeval it_value;     
  1785. };
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.  
  1793.  
  1794. # 1 "/usr/include/time.h" 1 3
  1795.  
  1796.  
  1797.  
  1798.  
  1799.  
  1800.  
  1801.  
  1802.  
  1803.  
  1804.  
  1805.  
  1806.  
  1807.  
  1808.  
  1809.  
  1810.  
  1811.  
  1812.  
  1813.  
  1814.  
  1815.  
  1816.  
  1817.  
  1818.  
  1819.  
  1820.  
  1821.  
  1822.  
  1823.  
  1824.  
  1825.  
  1826.  
  1827.  
  1828.  
  1829.  
  1830.  
  1831.  
  1832.  
  1833.  
  1834.  
  1835.  
  1836.  
  1837.  
  1838.  
  1839.  
  1840.  
  1841.  
  1842.  
  1843.  
  1844.  
  1845.  
  1846.  
  1847.  
  1848.  
  1849.  
  1850.  
  1851.  
  1852.  
  1853.  
  1854.  
  1855.  
  1856.  
  1857. struct tm {
  1858.     int    tm_sec;         
  1859.     int    tm_min;         
  1860.     int    tm_hour;     
  1861.     int    tm_mday;     
  1862.     int    tm_mon;         
  1863.     int    tm_year;     
  1864.     int    tm_wday;     
  1865.     int    tm_yday;     
  1866.     int    tm_isdst;     
  1867.     long    tm_gmtoff;     
  1868.     char    *tm_zone;     
  1869. };
  1870.  
  1871.  
  1872.  
  1873.  
  1874. char *asctime  (const struct tm *)         ;
  1875. clock_t clock  (void)         ;
  1876. char *ctime  (const time_t *)         ;
  1877. double difftime  (time_t, time_t)         ;
  1878. struct tm *gmtime  (const time_t *)         ;
  1879. struct tm *localtime  (const time_t *)         ;
  1880. time_t mktime  (struct tm *)         ;
  1881. size_t strftime  (char *, size_t, const char *, const struct tm *)         ;
  1882. time_t time  (time_t *)         ;
  1883.  
  1884.  
  1885.  
  1886. char *tzname[2];
  1887. void tzset  (void)         ;
  1888.  
  1889.  
  1890.  
  1891. char *timezone  (int, int)         ;
  1892. void tzsetwall  (void)         ;
  1893.  
  1894.  
  1895.  
  1896.  
  1897. # 92 "/usr/include/sys/time.h" 2 3
  1898.  
  1899.  
  1900.  
  1901.  
  1902.  
  1903.  
  1904. int    adjtime  (const struct timeval *, struct timeval *)         ;
  1905. int    getitimer  (int, struct itimerval *)         ;
  1906. int    gettimeofday  (struct timeval *, struct timezone *)         ;
  1907. int    setitimer  (int, const struct itimerval *, struct itimerval *)         ;
  1908. int    settimeofday  (const struct timeval *, const struct timezone *)         ;
  1909. int    utimes  (const char *, const struct timeval *)         ;
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916. # 104 "/usr/include/unistd.h" 2 3
  1917.  
  1918.  
  1919. int     acct  (const char *)         ;
  1920. int     async_daemon  (void)         ;
  1921. char    *brk  (const char *)         ;
  1922. int     chflags  (const char *, long)         ;
  1923. int     chroot  (const char *)         ;
  1924. char    *crypt  (const char *, const char *)         ;
  1925. int     des_cipher  (const char *, char *, long, int)         ;
  1926. int     des_setkey  (const char *key)         ;
  1927. int     encrypt  (char *, int)         ;
  1928. void     endusershell  (void)         ;
  1929. int     exect  (const char *, char * const *, char * const *)         ;
  1930. int     fchdir  (int)         ;
  1931. int     fchflags  (int, long)         ;
  1932. int     fchown  (int, int, int)         ;
  1933. int     fsync  (int)         ;
  1934. int     ftruncate  (int, off_t)         ;
  1935. int     getdomainname  (char *, int)         ;
  1936. int     getdtablesize  (void)         ;
  1937. long     gethostid  (void)         ;
  1938. int     gethostname  (char *, int)         ;
  1939. mode_t     getmode  (const void *, mode_t)         ;
  1940. int     getpagesize  (void)         ;
  1941. char    *getpass  (const char *)         ;
  1942. char    *getusershell  (void)         ;
  1943. char    *getwd  (char *)         ;             
  1944. int     initgroups  (const char *, int)         ;
  1945. int     mknod  (const char *, mode_t, dev_t)         ;
  1946. int     mkstemp  (char *)         ;
  1947. char    *mktemp  (char *)         ;
  1948. int     nfssvc  (int)         ;
  1949. int     nice  (int)         ;
  1950. void     psignal  (u_int, const char *)         ;
  1951. extern const char *const sys_siglist[];
  1952. extern const char *const sys_signame[];
  1953. int     profil  (char *, int, int, int)         ;
  1954. int     rcmd  (char **, int, const char *,
  1955.         const char *, const char *, int *)         ;
  1956. char    *re_comp  (const char *)         ;
  1957. int     re_exec  (const char *)         ;
  1958. int     readlink  (const char *, char *, int)         ;
  1959. int     reboot  (int)         ;
  1960. int     revoke  (const char *)         ;
  1961. int     rresvport  (int *)         ;
  1962. int     ruserok  (const char *, int, const char *, const char *)         ;
  1963. char    *sbrk  (int)         ;
  1964. int     select  (int, fd_set *, fd_set *, fd_set *, struct timeval *)         ;
  1965. int     setdomainname  (const char *, int)         ;
  1966. int     setegid  (gid_t)         ;
  1967. int     seteuid  (uid_t)         ;
  1968. int     setgroups  (int, const int *)         ;
  1969. void     sethostid  (long)         ;
  1970. int     sethostname  (const char *, int)         ;
  1971. int     setkey  (const char *)         ;
  1972. int     setlogin  (const char *)         ;
  1973. void    *setmode  (const char *)         ;
  1974. int     setpgrp  (pid_t pid, pid_t pgrp)         ;     
  1975. int     setregid  (int, int)         ;
  1976. int     setreuid  (int, int)         ;
  1977. int     setrgid  (gid_t)         ;
  1978. int     setruid  (uid_t)         ;
  1979. void     setusershell  (void)         ;
  1980. int     swapon  (const char *)         ;
  1981. int     symlink  (const char *, const char *)         ;
  1982. void     sync  (void)         ;
  1983. int     syscall  (int, ...)         ;
  1984. int     truncate  (const char *, off_t)         ;
  1985. int     ttyslot  (void)         ;
  1986. u_int     ualarm  (u_int, u_int)         ;
  1987. void     usleep  (u_int)         ;
  1988. void    *valloc  (size_t)         ;             
  1989. int     vfork  (void)         ;
  1990.  
  1991. int     getopt  (int, char * const *, const char *)         ;
  1992. extern     char *optarg;             
  1993. extern     int opterr;
  1994. extern     int optind;
  1995. extern     int optopt;
  1996. int     getsubopt  (char **, char * const *, char **)         ;
  1997. extern     char *suboptarg;         
  1998.  
  1999.  
  2000.  
  2001.  
  2002. # 19 "zip.c" 2
  2003.  
  2004.  
  2005.  
  2006. # 1 "/usr/include/fcntl.h" 1 3
  2007.  
  2008.  
  2009.  
  2010.  
  2011.  
  2012.  
  2013.  
  2014.  
  2015.  
  2016.  
  2017.  
  2018.  
  2019.  
  2020.  
  2021.  
  2022.  
  2023.  
  2024.  
  2025.  
  2026.  
  2027.  
  2028.  
  2029.  
  2030.  
  2031.  
  2032.  
  2033.  
  2034.  
  2035.  
  2036.  
  2037.  
  2038.  
  2039.  
  2040.  
  2041.  
  2042.  
  2043.  
  2044.  
  2045.  
  2046.  
  2047.  
  2048.  
  2049.  
  2050.  
  2051.  
  2052.  
  2053.  
  2054.  
  2055.  
  2056.  
  2057.  
  2058.  
  2059.  
  2060.  
  2061.  
  2062.  
  2063.  
  2064.  
  2065.  
  2066.  
  2067.  
  2068.  
  2069.  
  2070.  
  2071.  
  2072.  
  2073.  
  2074.  
  2075.  
  2076.  
  2077.  
  2078.  
  2079.  
  2080.  
  2081.  
  2082.  
  2083.  
  2084.  
  2085.  
  2086.  
  2087.  
  2088.  
  2089.  
  2090.  
  2091.  
  2092.  
  2093.  
  2094.  
  2095.  
  2096.  
  2097. # 100 "/usr/include/fcntl.h" 3
  2098.  
  2099.  
  2100.  
  2101.  
  2102.  
  2103.  
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119.  
  2120.  
  2121.  
  2122.  
  2123.  
  2124.  
  2125.  
  2126.  
  2127.  
  2128.  
  2129.  
  2130.  
  2131.  
  2132.  
  2133.  
  2134.  
  2135.  
  2136.  
  2137.  
  2138.  
  2139.  
  2140.  
  2141.  
  2142.  
  2143.  
  2144.  
  2145.  
  2146.  
  2147.  
  2148.  
  2149. struct flock {
  2150.     short    l_type;         
  2151.     short    l_whence;     
  2152.     off_t    l_start;     
  2153.     off_t    l_len;         
  2154.     pid_t    l_pid;         
  2155. };
  2156.  
  2157.  
  2158.  
  2159.  
  2160.  
  2161.  
  2162.  
  2163.  
  2164.  
  2165.  
  2166.  
  2167.  
  2168.  
  2169.  
  2170.  
  2171. int    open  (const char *, int, ...)         ;
  2172. int    creat  (const char *, mode_t)         ;
  2173. int    fcntl  (int, int, ...)         ;
  2174.  
  2175. int    flock  (int, int)         ;
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181. # 22 "zip.c" 2
  2182.  
  2183.  
  2184.  
  2185. static  ulg crc;        
  2186. long header_bytes;    
  2187.  
  2188.  
  2189.  
  2190.  
  2191.  
  2192.  
  2193. int zip(in, out)
  2194.     int in, out;             
  2195. {
  2196.     uch  flags = 0;          
  2197.     ush  attr = 0;           
  2198.     ush  deflate_flags = 0;  
  2199.  
  2200.     ifd = in;
  2201.     ofd = out;
  2202.     outcnt = 0;
  2203.  
  2204.      
  2205.  
  2206.     method =    8 ;
  2207.     {outbuf[outcnt++]=(uch)(     "\037\213" [0] ); if (outcnt== 16384  ) flush_outbuf();} ;  
  2208.     {outbuf[outcnt++]=(uch)(     "\037\213" [1] ); if (outcnt== 16384  ) flush_outbuf();} ;
  2209.     {outbuf[outcnt++]=(uch)(    8  ); if (outcnt== 16384  ) flush_outbuf();} ;       
  2210.  
  2211.     if (save_orig_name) {
  2212.     flags |=    0x08 ;
  2213.     }
  2214.     {outbuf[outcnt++]=(uch)( flags ); if (outcnt== 16384  ) flush_outbuf();} ;          
  2215.     { { if (outcnt <  16384  -2) { outbuf[outcnt++] = (uch) (( ( time_stamp ) & 0xffff ) & 0xff); outbuf[outcnt++] = (uch) ((ush)( ( time_stamp ) & 0xffff ) >> 8); } else { {outbuf[outcnt++]=(uch)( (uch)(( ( time_stamp ) & 0xffff ) & 0xff) ); if (outcnt== 16384  ) flush_outbuf();} ; {outbuf[outcnt++]=(uch)( (uch)((ush)( ( time_stamp ) & 0xffff ) >> 8) ); if (outcnt== 16384  ) flush_outbuf();} ; } } ; { if (outcnt <  16384  -2) { outbuf[outcnt++] = (uch) (( ((ulg)( time_stamp )) >> 16 ) & 0xff); outbuf[outcnt++] = (uch) ((ush)( ((ulg)( time_stamp )) >> 16 ) >> 8); } else { {outbuf[outcnt++]=(uch)( (uch)(( ((ulg)( time_stamp )) >> 16 ) & 0xff) ); if (outcnt== 16384  ) flush_outbuf();} ; {outbuf[outcnt++]=(uch)( (uch)((ush)( ((ulg)( time_stamp )) >> 16 ) >> 8) ); if (outcnt== 16384  ) flush_outbuf();} ; } } ; } ;
  2216.  
  2217.      
  2218.     crc = updcrc(0, 0);
  2219.  
  2220.     bi_init(out);
  2221.     ct_init(&attr, &method);
  2222.     lm_init(level, &deflate_flags);
  2223.  
  2224.     {outbuf[outcnt++]=(uch)( (uch)deflate_flags ); if (outcnt== 16384  ) flush_outbuf();} ;  
  2225.     {outbuf[outcnt++]=(uch)(  0x03   ); if (outcnt== 16384  ) flush_outbuf();} ;             
  2226.  
  2227.     if (save_orig_name) {
  2228.     char *p = basename(ifname);  
  2229.     do {
  2230.         {outbuf[outcnt++]=(uch)(  *p  ); if (outcnt== 16384  ) flush_outbuf();}  ;
  2231.     } while (*p++);
  2232.     }
  2233.     header_bytes = (long)outcnt;
  2234.  
  2235.     (void)deflate();
  2236.  
  2237. # 86 "zip.c"
  2238.  
  2239.  
  2240.      
  2241.     { { if (outcnt <  16384  -2) { outbuf[outcnt++] = (uch) (( ( crc ) & 0xffff ) & 0xff); outbuf[outcnt++] = (uch) ((ush)( ( crc ) & 0xffff ) >> 8); } else { {outbuf[outcnt++]=(uch)( (uch)(( ( crc ) & 0xffff ) & 0xff) ); if (outcnt== 16384  ) flush_outbuf();} ; {outbuf[outcnt++]=(uch)( (uch)((ush)( ( crc ) & 0xffff ) >> 8) ); if (outcnt== 16384  ) flush_outbuf();} ; } } ; { if (outcnt <  16384  -2) { outbuf[outcnt++] = (uch) (( ((ulg)( crc )) >> 16 ) & 0xff); outbuf[outcnt++] = (uch) ((ush)( ((ulg)( crc )) >> 16 ) >> 8); } else { {outbuf[outcnt++]=(uch)( (uch)(( ((ulg)( crc )) >> 16 ) & 0xff) ); if (outcnt== 16384  ) flush_outbuf();} ; {outbuf[outcnt++]=(uch)( (uch)((ush)( ((ulg)( crc )) >> 16 ) >> 8) ); if (outcnt== 16384  ) flush_outbuf();} ; } } ; } ;
  2242.     { { if (outcnt <  16384  -2) { outbuf[outcnt++] = (uch) (( ( bytes_in  ) & 0xffff ) & 0xff); outbuf[outcnt++] = (uch) ((ush)( ( bytes_in  ) & 0xffff ) >> 8); } else { {outbuf[outcnt++]=(uch)( (uch)(( ( bytes_in  ) & 0xffff ) & 0xff) ); if (outcnt== 16384  ) flush_outbuf();} ; {outbuf[outcnt++]=(uch)( (uch)((ush)( ( bytes_in  ) & 0xffff ) >> 8) ); if (outcnt== 16384  ) flush_outbuf();} ; } } ; { if (outcnt <  16384  -2) { outbuf[outcnt++] = (uch) (( ((ulg)( bytes_in  )) >> 16 ) & 0xff); outbuf[outcnt++] = (uch) ((ush)( ((ulg)( bytes_in  )) >> 16 ) >> 8); } else { {outbuf[outcnt++]=(uch)( (uch)(( ((ulg)( bytes_in  )) >> 16 ) & 0xff) ); if (outcnt== 16384  ) flush_outbuf();} ; {outbuf[outcnt++]=(uch)( (uch)((ush)( ((ulg)( bytes_in  )) >> 16 ) >> 8) ); if (outcnt== 16384  ) flush_outbuf();} ; } } ; } ;
  2243.     header_bytes += 2*sizeof(long);
  2244.  
  2245.     flush_outbuf();
  2246.     return      0 ;
  2247. }
  2248.  
  2249.  
  2250.  
  2251.  
  2252.  
  2253.  
  2254.  
  2255. int file_read(buf, size)
  2256.     char *buf;
  2257.     unsigned size;
  2258. {
  2259.     unsigned len;
  2260.  
  2261.      ;
  2262.  
  2263.     len = read(ifd, buf, size);
  2264.     if (len == (unsigned)(-1) || len == 0) return (int)len;
  2265.  
  2266.     crc = updcrc((uch*)buf, len);
  2267.     bytes_in  += (ulg)len;
  2268.     return (int)len;
  2269. }
  2270.